package cn.wolfcode.crm.util;

import cn.wolfcode.crm.domain.Employee;
import org.apache.shiro.SecurityUtils;

public abstract class UserContext {
    //todo 重构

    //返回登陆用户的身份
    public static Employee getEmployee(){
        return (Employee) SecurityUtils.getSubject().getPrincipal();

    }
}
